﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DeductList.aspx.cs" Inherits="Violation_DeductList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/Site.css" rel="stylesheet" type="text/css" />
    <link href="../css/smoothness/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>
            <asp:Button ID="btnReturn" runat="server" Text="返回违章信息列表" OnClick="btnReturn_Click" />
            </p>
    </div>
    <div>
        <asp:GridView ID="gvUserDeduct" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="DeductID"
            Style="width: 100%; text-align:center;" GridLines="Horizontal" EmptyDataText="暂时没有数据">
            <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hDeductID" runat="server" Value='<%# Eval("DeductID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hViolationNID" runat="server" Value='<%# Eval("ViolationNID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hUserID" runat="server" Value='<%# Eval("UserID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hCompanyID" runat="server" Value='<%# Eval("CompanyID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="UserName" HeaderText="违章人" SortExpression="UserName" />
                <asp:BoundField DataField="DeductIntegral" HeaderText="扣分" SortExpression="DeductIntegral" />
                <asp:BoundField DataField="Reason" HeaderText="原因" SortExpression="Reason" />
                <asp:BoundField DataField="CommitTime" HeaderText="扣分时间" SortExpression="CommitTime" />
                <asp:BoundField DataField="DeductType" HeaderText="扣分类型" SortExpression="DeductType"
                    Visible="False" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </div>
    <div>
        <asp:GridView ID="gvCompanyDeduct" runat="server" AutoGenerateColumns="False" BackColor="White"
            BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="DeductID"
            Style="width: 100%; text-align:center;" GridLines="Horizontal">
             <RowStyle BackColor="#EFF3FB" />
            <Columns>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hDeductID" runat="server" Value='<%# Eval("DeductID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hViolationNID" runat="server" Value='<%# Eval("ViolationNID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField ShowHeader="False">
                    <ItemTemplate>
                        <asp:HiddenField ID="hCompanyID" runat="server" Value='<%# Eval("CompanyID") %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="CompanyName" HeaderText="违章公司" SortExpression="UserName" />
                <asp:BoundField DataField="DeductIntegral" HeaderText="扣分" SortExpression="DeductIntegral" />
                <asp:BoundField DataField="Reason" HeaderText="原因" SortExpression="Reason" />
                <asp:BoundField DataField="CommitTime" HeaderText="扣分时间" SortExpression="CommitTime" />
                <asp:BoundField DataField="DeductType" HeaderText="扣分类型" SortExpression="DeductType"
                    Visible="False" />
            </Columns>
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </div>
    </form>
</body>
<script src="../script/jquery-1.4.2.min.js" type="text/javascript"></script>
<script src="../script/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>
</html>
